package aop.test.advice;

import cn.stimd.spring.aop.ThrowsAdvice;

import java.lang.reflect.Method;

/**
 * Created by Stimd
 * 项目地址：https://gitee.com/stimd/spring-wheel
 * 公众号：Java编程探微
 */
public class SimpleThrowsAdvice implements ThrowsAdvice {

    public void afterThrowing(Method method, Object[] args, Object target, Exception ex){
        System.out.println("异常通知: 目标对象[" + target.getClass().getSimpleName() + "]执行方法[" + method.getName() + "]");
    }
}
